import request from '@/utils/http'

// 获取sku列表
export const reqGetSkuList = (page, limit) => {
  return request.get(`/admin/product/list/${page}/${limit}`)
}

// 删除sku
export const reqDeleteSku = (skuId) => {
  return request.delete(`/admin/product/deleteSku/${skuId}`)
}

// 上架sku
export const reqOnSale = (skuId) => {
  return request.get(`/admin/product/onSale/${skuId}`)
}
// 下架sku
export const reqCancelSale = (skuId) => {
  return request.get(`/admin/product/cancelSale/${skuId}`)
}

// 查看sku详情
export const reqGetSkuById = (skuId) => {
  return request.get(`/admin/product/getSkuInfo/${skuId}`)
}